import {defineStore} from "pinia";
import {ref} from "vue";


export const navigation = defineStore('data', ()=>{
    const choose = ref<boolean>(false)
    const chooseArr = [
        {id: 0, title: '首页', urlChoose: '../../src/assets/images/首页-copy.png', urlOut: '../../src/assets/images/首页-灰.png', choose: !choose.value, page: '/index'},
        {id: 1, title: '心理测评', urlChoose: '../../src/assets/images/心理卡.png', urlOut: '../../src/assets/images/心理卡_灰.png', choose: choose.value, page: '/tree'},
        {id: 2, title: '发起预约', urlChoose: '../../src/assets/images/十字.png', urlOut: '../../src/assets/images/十字_灰.png', choose: choose.value, page: '/booking'},
        {id: 3, title: '树洞', urlChoose: '../../src/assets/images/fileText-蓝.png', urlOut: '../../src/assets/images/24gf-fileText.png', choose: choose.value, page: '/tree'},
        {id: 4, title: '个人中心', urlChoose: '../../src/assets/images/个人中心.png', urlOut: '../../src/assets/images/个人中心_灰.png', choose: choose.value, page: '/personal'}
    ]
    localStorage.setItem('data',JSON.stringify(chooseArr))
    return {choose, chooseArr}
})